<%- include ../include/header %>

      <%- include ../include/flash %>

        <div class="well well-sm">
          <h4><%= post.title %></h4>
          <p><%- post.content %></p>
          <span class="label label-default"><%= post.userName %></span>
          <span class="label label-default"><%= post.time.minute  %></span>
          <% if (user) { %>
	          <a href="/post/u/<%=post._id%>"><span class="label label-primary">Edit</span></a>
	          <a href="/post/d/<%=post._id%>"><span class="label label-danger">Delete</span></a>
		  <% } %>	          
        </div>

<%- include ../include/footer %>